<script setup lang="ts">
import HelloWorld from "./components/HelloWorld.vue";
import {useRouter} from "vue-router"
const router = useRouter()
const imgUrl = new URL('./assets/logo.png', import.meta.url).href

const goToLogin = () => {
  router.push({
    name: "Login"
  })
}
</script>

<template>
  <img alt="Vue logo" :src="imgUrl" />
  <h1 class="my-input">This is my input 555</h1>
  <HelloWorld msg="Hello Vue 3 + TypeScript + Vite" />
  <h1 @click="goToLogin">GOGOGO</h1>
<!--  <router-link to="/login"><h1>GOGOGO</h1></router-link>-->
  <router-view></router-view>
</template>

<style>
#viteTest {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

.my-input {
  color: violet;
}
</style>
